package me.shiqiang.im.microservice;

import me.shiqiang.im.microservice.returnobj.AppHomeInfoReturnObj;
import me.shiqiang.im.microservice.returnobj.UserInfoReturnObj;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by John on 2018/4/28
 */
@FeignClient(name = "service-user-query")
@RequestMapping("/users-query")
public interface UserClient {

    @GetMapping("/uid/{id}")
    UserInfoReturnObj userInfoById(@PathVariable("id") Long id);

    @GetMapping("/{uid}/app-home-info")
    AppHomeInfoReturnObj appHomeInfo(@PathVariable("uid") Long uid);

}
